package com.fsharemobile.model;

import android.os.Parcel;
import android.os.Parcelable;

public class User implements Parcelable{

	private String id;
	private String name;
	private String userEmail;
	private String level;
	private String expireVip;
	private String joinDate;
	private String totalPoints;
	private String traffic;
	private String trafficUsed;
	private String webSpace;
	private String webSpaceUsed;
	private String webSpaceSecure;
	private String webSpaceSecureUsed;
	private String amount;
	
	
	public User(String id, String name, String userEmail, String level,
			String expireVip, String joinDate, String totalPoints,
			String traffic, String trafficUsed, String webSpace,
			String webSpaceUsed, String webSpcaeSecure,
			String webSpaceSecureUsed, String amount) {
		super();
		this.id = id;
		this.name = name;
		this.userEmail = userEmail;
		this.level = level;
		this.expireVip = expireVip;
		this.joinDate = joinDate;
		this.totalPoints = totalPoints;
		this.traffic = traffic;
		this.trafficUsed = trafficUsed;
		this.webSpace = webSpace;
		this.webSpaceUsed = webSpaceUsed;
		this.webSpaceSecure = webSpcaeSecure;
		this.webSpaceSecureUsed = webSpaceSecureUsed;
		this.amount = amount;
	}


	public User() {
		super();
	}


	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public String getUserEmail() {
		return userEmail;
	}


	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}


	public String getLevel() {
		return level;
	}


	public void setLevel(String level) {
		this.level = level;
	}


	public String getExpireVip() {
		return expireVip;
	}


	public void setExpireVip(String expireVip) {
		this.expireVip = expireVip;
	}


	public String getJoinDate() {
		return joinDate;
	}


	public void setJoinDate(String joinDate) {
		this.joinDate = joinDate;
	}


	public String getTotalPoints() {
		return totalPoints;
	}


	public void setTotalPoints(String totalPoints) {
		this.totalPoints = totalPoints;
	}


	public String getTraffic() {
		return traffic;
	}


	public void setTraffic(String traffic) {
		this.traffic = traffic;
	}


	public String getTrafficUsed() {
		return trafficUsed;
	}


	public void setTrafficUsed(String trafficUsed) {
		this.trafficUsed = trafficUsed;
	}


	public String getWebSpace() {
		return webSpace;
	}


	public void setWebSpace(String webSpace) {
		this.webSpace = webSpace;
	}


	public String getWebSpaceUsed() {
		return webSpaceUsed;
	}


	public void setWebSpaceUsed(String webSpaceUsed) {
		this.webSpaceUsed = webSpaceUsed;
	}


	public String getWebSpcaeSecure() {
		return webSpaceSecure;
	}


	public void setWebSpcaeSecure(String webSpcaeSecure) {
		this.webSpaceSecure = webSpcaeSecure;
	}


	public String getWebSpaceSecureUsed() {
		return webSpaceSecureUsed;
	}


	public void setWebSpaceSecureUsed(String webSpaceSecureUsed) {
		this.webSpaceSecureUsed = webSpaceSecureUsed;
	}


	public String getAmount() {
		return amount;
	}


	public void setAmount(String amount) {
		this.amount = amount;
	}
	
	
	// add contrustor for Pacer object.  use in CREATOR
	private User(Parcel in){
		this.id = in.readString();
		this.name = in.readString();
		this.userEmail =in.readString();
		this.level = in.readString();
		this.expireVip = in.readString();
		this.joinDate = in.readString();
		this.totalPoints = in.readString();
		this.traffic =in.readString();
		this.trafficUsed = in.readString();
		this.webSpace = in.readString();
		this.webSpaceUsed = in.readString();
		this.webSpaceSecure = in.readString();
		this.webSpaceSecureUsed = in.readString();
		this.amount = in.readString();
	}


	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}


	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		dest.writeString(id);
		dest.writeString(name);
		dest.writeString(totalPoints);
		dest.writeString(amount);
		dest.writeString(expireVip);
		dest.writeString(joinDate);
		dest.writeString(level);
		dest.writeString(traffic);
		dest.writeString(trafficUsed);
		dest.writeString(userEmail);
		dest.writeString(webSpace);
		dest.writeString(webSpaceSecureUsed);
		dest.writeString(webSpaceUsed);
		dest.writeString(webSpaceSecure);		
	}
	
	public static final Parcelable.Creator<User> CREATOR = new Parcelable.Creator<User>() {

		@Override
		public User createFromParcel(Parcel source) {
			// TODO Auto-generated method stub
			return new User(source);
		}

		@Override
		public User[] newArray(int size) {
			// TODO Auto-generated method stub
			return new User[size];
		}
		
	};
	
	
	
	
	
	
	
}
